package com.zrwl.poscloud.base.constants;

public class TransitConstants {
    /***
     * type 类型: 出校,入校,其他
     */
    public static final int exit_school = 1;//出校
    public static final int enter_school = 2;//入校
    public static String getTypeName(int type) {
        switch (type) {
            case exit_school:
                return "离校";
            case enter_school:
                return "入校";
            default:
                return "其他";
        }
    }
    /***
     * status 类型: 正常,失效
     */
    public static final int enable = 1;//正常
    public static final int disabled = 2;//失效
    public static String getStatusName(int type,int status) {
        if(type == exit_school){
            switch (status){
                case enable:
                    return "已离校";
                case disabled:
                    return "已失效";
            }
        }
        if(type == enter_school){
            switch (status){
                case enable:
                    return "已入校";
                case disabled:
                    return "已失效";
            }
        }
        return "";
    }
}
